$(function() {
    //点击展开导航
    $(".headBox").on("click",".menu",function(event){
        event.stopPropagation();
        $(".nav").slideToggle();
    });
    //头部导航切换
    $("ul.nav").on("click","li",function(){
        $(this).addClass("act").siblings().removeClass("act");
        $(".nav").slideUp()
    });
    //底部导航
    $("ul.footNav").on("click","li",function(){
        $(this).addClass("on").siblings().removeClass("on");
    });
    //点击其他部分导航收起
    $(document).on("touchstart",function(){
        $(".nav").slideUp()
    });
});
jQuery(function ($) { "use strict";
    var nice = $("html").niceScroll({
        cursorborderradius: 0,
        cursorwidth: "8px",
        cursorfixedheight: 150,
        cursorcolor: "#6CB670",
        zindex: 9999,
        cursorborder: 0,
    });

    (function() {
        var count = {
            initialized : false,
            initialize : function() {
                if (this.initialized)
                    return;
                this.initialized = true;
                this.build();
            },
            build : function() {
                this.animations();
            },
            animations : function() {
                // Count To
                $(".counters-item [data-to]").each(function() {
                    var $this = $(this);
                    $this.appear(function() {
                        $this.countTo({});
                    }, {
                        accX : 0,
                        accY : -150
                    });
                });
            },
        };
        count.initialize();
    })();

});

wow = new WOW({
    animateClass: 'animated',
    offset: 120
});
wow.init();
